package com.gxa.common;

/**
 * 提供Layui数据表格统一处理的实体类
 */
public class JsonResult<T> {
     private Integer code; //返回的状态码
     private String msg; //返回的消息

     private Integer count; //返回总条数
     private T data; //返回的数据(Map、List、String......)

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
